package com.example.blogsystem.model.vo;

import com.example.blogsystem.utils.DateUtils;
import lombok.Data;

import java.util.Date;

@Data
public class BlogVo {
    private Integer id;
    private String title;
    private String content;
    private Integer deleteFlag;
    private Integer count;
    private Integer star;
    private Integer file_flag;
    private Date createTime;
    private String summary;

    public String getCreateTime() {
        return DateUtils.formatDate(createTime);
    }
}
